Ensure mouse click does not reset expanded module if it is the same.