fix refect bugs