Fix warning messages being shown when no P2 was not passed as parameter.