Finally fixed the first element problem