fixed warnings in new bundle code