Minor fixes.
Merge pull request #3 from ahb108/webglfailfix

Minor fixes.