Error when failing to create a custom variable