Bug with file handler