fix to run with bundle=