fix and error log