Fixed bug in tickrate