a buggy solution to P0026