BUG authentication fix