Rename flush invalid function for consistency.