fix message for assertion 10147 (invalid modifier)
implement $pop