Fix for bug where adding AMUs to instances was causing a Rails error