fixed dumb -1 error