Fixed Ruby warnings