fix primary update error
fix #7 support profile expression