Fixed problem with arraylist an PUT requests