Fixed fatal error in Schema