Fixed scheme to java types mismatch