perspective_params: bug fix for math fail