fixing update error