fixed a bug with the signs