fixed localize error

only localize script on single and return if is not set