Fixed bug with renderTree call after POST