Fixed log name bug