Fixed issue when hit.type was specified (Issue#18)