Fixed a bug wher bundling would not behave as intended.