Fixed logging of filename

Closes #71