Fix ptype list implementation.