Fixed octave error in P