fixes falling bug