fixed variant location bug