bugfixes to openvg snippet