fixing the related schema