fix bug for creating updates