Fix for load_new_resource_state

 on ubuntu version 12.04