Fixed "decide function returned None!" bug