fix failing testLogError