fix some small pb when the library wouldn't refresh the app after the item was bought