Fixes not parsing of last element