Fixed bug with postRender event being outside the defer