Saving changes to work to listenApplication

Fixed the bug that was made in previous commit