fixed pd editor bugs