fix sign bugs