Fixing error in script

I somehow double declared the function, must have been a merge error or something..