fix TypeError: Object false has no method 'dispatch' when 'forward' is false