Some obvious issues fixed

Wrong references to $this->module fixed and resolve an issue with missing parameter $print in updateRelatedRecords.