fixing map variable