Modified clone method in FloatingTask.java