Further Bug fixes

fixed errors if output called before content added