fix bug related to panningView