fix excerpt code