add $bundle to constructor
Merge pull request #794 from craigh/UserModFix2

add $bundle to constructor