[core] Fix p with multiple arguments