Fixed wrong signed treating