fix notice error "Undefined variable: pchange"