Fixed error with plan in hidden field