Fixed a NaN issue while computing the MVC