Fix a bug of signs