quick fix for API respond with flash issue