fixing whitescreen issue when importing