Fix alignment count comparison