fixed beforeRender method in idea controller