Novak Djokovic says he had to lift his spirits and give himself a talking to as he came from two sets down to beat Laslo Djere at the US Open.