fix for file insertion