fixed autorization problem