Fixing problem calling EC2 model