profile illegalState bug fixed