fixed #353;
 record reference inside `is_record` function call