Fix CreateMode bug