Bugfix: getTicks would throw an undefined error