Fix for map notation in ts