Fix stmt offsets