Fixed writing to imdb.log