Fixed signum logic.