fix delay and random cursor jumping with mappings