Fixed undefined definition of isLeft