build fix pointer usage in UI