Fix some async callbacks to be fired twice, closes #274.