Bugfix at keyboard expansion.