Fixed errors in models and relations