Fixed Bug for incommutable functions