Fixed Java7 problem