fixing map controller