Fixed the assignment of VolumeData global which is used for calculation of calibration parameters for motion detection