Try to remove NaN error on graphs