Fixed Bug with P1 input