address few prefast warnings