fixed a case where extended was malformed