Fix unused variables warning