fix: int(27/2-1/2) corrupts memory