fixed bug with sign