fixed wrong validation of record_id in globals