fixes error in checking regression type and features