fix async and deferred options