Inactivity message is showing up when it shouldn't