Fixed virtualmodel in order to calculate ratioToMax even with resultType = null