made enqueuing two functions in the same tick actually work.