fix transactional problems in autorization