[BSU] Fix bug when repeating keys.