Fixed Pan Error