Fix for error on the existing patients page