Fixed bug caused by java7 update,