Fixed def create bug.