fixed a negative error