Bug fixing: new syntax for check_resource was not working