fix issue with UI where package is declared after import.