fix #283, error on late startup

No jshint error ;) But I changed it.