Fix log button issue