Fix update_something function to detect resource name