bug fixing error when add new patient