fixed a bug where nothing could be done in the program