fixed bug in reflection