respond right for ie8
fix "lastRange" wrong state