Fixed logic in assigned and restore itsbeta account