fixed some issues with ONB files