minor fixes for the update routine
quick fix for update_packages function