fixed #4743 - incorrect license error when creating user session