Fix UI resolution bug