fix ddl error when entity has no options yet