fixing sync - updating only i a detect deferences