fixed variant bug