Fix #167 : async filters in if statements hang indefinitely

As said in #167 , my tests are probably not in the right place. Feel free to clean it ;)