fix error when classes are created without option argument