fix sign issue in pot3d