Bugfixes, fixed all GL errors