fix asynchronous call to marked