fixed pi x problem