Fix missing bracket
fix problems with valid_fields

fixed space between timeperiod_name and monday
added alias