Fixed path to subquery result. TODO : prevent tables outside of a subquery to be displayed inside of it