fixed undefined error of my .select hack