Fixed a bug where in class doesnt apply for deep route