Auto cancellation of pending not payed bookings are not works after the specific time.

I am activated the "Auto cancel bookings" feature (Cancel only pending, not paid bookings, which is older then at this selection), but its still not work even after specific amount of time after creation of bookings for the bookings, which are have no successful payment status and not approved. How to fix it ?
Its known issue in the versions 4.0 and 4.0.1 of the Booking Calendar.

So for fixing this issue, please open this file ../booking/inc/biz_s.php

find this function declaration:
function check_pending_not_paid_auto_cancell_bookings($bk_type)

inside of the content of that function, please find this code:

$labels_payment_status_ok = implode( ', ', $labels_payment_status_ok);
$labels_payment_status_pending = get_payment_status_pending();
$labels_payment_status_pending = implode( ', ', $labels_payment_status_pending);
$labels_payment_status_ok .= ', ' . $labels_payment_status_pending;

and replace it to this code:

$labels_payment_status_ok = implode( "', '" , $labels_payment_status_ok);
$labels_payment_status_ok = "'" . $labels_payment_status_ok;
$labels_payment_status_pending = get_payment_status_pending();
$labels_payment_status_pending = implode( "', '", $labels_payment_status_pending);
$labels_payment_status_ok .= "', '" . $labels_payment_status_pending . "'";