Bugfix for sign error