Fix asynchrone bug with planning