fix crash when running 'create score' plugin