fixing missing glend calls