fix bug in production plan