Fix clearClass option bug