Fix bug where minus sign was missing in the return value