Fixed printing of the layout when succesful character has been typed