fixed 'possible strict violation' on spinner code