fixed problems in isort() code