fixed bug with signs