fixed patient upload