Fix compiler warning which showed a bug and tabify the code.