Panfunction fixed

„Pan“ is fixed