Fixed a bug where 'hop' was undefined