fix 'shake' class initialization