fixed some warnings after compile.