Hit issue fixed

Fixed an issue where hit throws an error because getBarGeometry returns null