Fix for setting async flag