fixed issue for non-RESTful controllers