bugfix: Proc in %P %p literal could not access local variables