fixed bug in creation of may be relation file