fix showing type by removing unused bounds check