fix timing issue and chef11 issue