Fixed level not updating to deactivate on max attempts reached