bug fix: to_expression now returns the proper wday