Fixed importing models and loading files from resource too.