UIExample bug fixing