fix model locking