Bughunting

fixed small bug when integrating mutiple files...