reference error prevents delete in firefox