fixed some warnning