fix sign method