fix error when updating app