solve ctrl-s problem