fixed bug in pan~