-fixed bug with JDK 1.7