Bug fix: error log when there is no error