fixed bug with long patient list