- Fixed problem with new scope created for ng-if in import template.
- Fixed mistake in import query so that only required fields are now fetched.