Closed #4728: window._p cannot be modified in some cases