fix ui blocking