fixing signed numbers