minor fix in reflectionhelper