fixing bug with conversion between oz to packages and vice versa