Solve sign problem