Fix getfields error, add push hook