Minor spelling change and missing while(){}.