How did you solved the NaN problem ??? Thanks.