fix for relation