[BUG #8640] fixed type check