fixed set_displacement