small fixes to avoid warnings