Fixing return forbidden error