fix belongs_to problem in modles