[FIX] fixed bs_tools compiler bugs