fix bug in ffmap backend