fixing a bug with updates