Debugging the missing template problem