fixed misc warnings