TINYGL: fixed almost all the issues that arised after the refactoring.