actually fixing update bug