java: Fix typed Fragment