Fixed Math.signum issue