Try to fix the exception (Reference error)