FIX: pyglet backward compatibility