Why the hell you needed to delete anything from options?

This spoils the object you're passing. Don't ever do this again without duping the object you work on.