fixed authorization problem