[PATCH] Fix member offset calculation