fixed warning introduced by java