Fixing flowtypes