fixes bug in import prettyprinting