fixed a bug causing the model command to fail on methods that are not relationships