bug fix for request check in controller