Bug solved in automated script