fix the bug with reflect