Fixes issue with showing error messages.
Merge pull request #4 from saebyn/master

Fixes issue with showing error messages.