I found the problem. There was indeed a bug in add_resource. This will be fixed in the 6.50 update.