fix bug: show client not enabled error if the client is disabled, not the other way around