Fixes issue where comma separated local URLs only keep the last value