fixed error during update in setter func