fix load_current_resource

Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>