fixed typo in level bean contains function