fixed some webgl stuff