fixed logstring at end