fixes package dimension handling