Fixing unauthorised response