Fixed single task bug

Fixed bug where if only creating a single task in an action plan it
failed