fixing issues for bug: https://tickets.opscode.com/browse/CHEF-5292