fixed update method (need to add jvm option -Xms256m -Xmx1024m)