Minor bugs

filehandlers