fix item loss an packet sync issues