Fixed java 7 error