fixing patient async problem