Can't add EC2 hosts

Got up and running today with a fresh 0.51.0 install, I’m able to add hosts via Digital Ocean with no problem. Trying AWS isn’t working for me. I get the following error:

TypeError: Cannot read property 'name' of undefined

I checked the forums and saw that this was a problem with previous versions but had been fixed. Any ideas?

Good workaround, thanks!