fix for sanitizer errors in left shifts