fix plan syntax