fixed some java warnings