Fixing pyframe