squash npe
fix after change to typechecker API
fix bug autocompleting after typing