Fixed problem with references to the $options array