fixed errors in UI gen