fix bug with error handeling
Merge pull request #3 from Calculingua/development

fix bug with error handeling