Fixed 'jumping' bug