Fixed Duplicate Patient Bug