Fixing startPoint bug