fixed java 7 problem