Fix the awful "nil is not a number" error