Fixed Z squaring away negatives