Fix for / by 0 in /tps

Signed-off-by: Ross Allan <rallanpcl@gmail.com>