error in MapRecord usage