fix bug where bake plan was recieving a null value for callback function