Remove namespace when detecting model from controller

For #108. This works for me. If agreed, I can add a test for this case