BUG: Fix statement before declaration in mapping.c