Make sure resource ID is a number