error when ami_id is empty