undefined score fix