a little fix with warnings