Fixed invalid action error, error to be added