getAllHasType and Bug Fixes