compile bug fix for using ruby reflextion