Update condition to <= 6 for proper build package