buf fix, add check on reboot