Fixed crash bug on QP < 15 caused by division with zero lambda cost