Minor bugfix, ONLINE array out of bound