fix for api controllers without layouts