Fix all curves are zero bug