Fix negative value problem