Solved #150, self.ui returns empty array insted of undefined