Fix spacing ui bug