Fix error if clients is set

Should solve #1