Fixed click() using undefined var points