Fix issue that views_path is not added in controller context