maxptime error

caught an error when i was demoing. fixed.