bug fix in spinner - was not handling multiple instances well