Found problem with uglDemo, nothing wrong in the ugl library.