attempt to fix npe
use isFinal() instead of isExtendable()