Trying to remove secret undefined call to error