Fixed file logging