Fixes movement bug