Fix bugs and add async samples