fix for issue #309 only store the single ami for vm