Fixed the bug that was causing weird responsiveness upon app restart.