fixed redirect back to clients bug