fixed bugs of sign