Fixed visual rendering bug