fix model locking on client