fix java7 issue