You've got a typo here and in the other location - `$default_format` instead of `default_format`.