fixed a bug with the smartupdate