fixing a bug with the optimization table and conversion between oz and
packages