fix for "document" inside of import