Fixes undefined method 'split' for Array when setting up security groups