fixed trouble during authorization