FIX: Uncaught TypeError: Cannot call method 'shift' of undefined
Merge pull request #190 from eviltrout/shift_error

FIX: Uncaught TypeError: Cannot call method 'shift' of undefined