Some fixes on capacity constraint and passenger priority.