Fix bug in online checking code