Fixed small bug in patient list to csv