fix the problem found by flowly