fix a bug. remove the warning