total min max perspectivized bug fixed