Fixing java beans