fix for offline edit