Fixed a bug in timeline that prevented it from showing the grid and causing an exception from the StateMachine