Fixed 'moving gem' bug