ui: Fix endif position