fix for sync issue when undefined is put in redis as string