fix for IE7
fix error message
Merge pull request #1 from auto-mat/master

Fix for IE7