CBL code after Jens aded a fix for 64 bit crash