Not sure if it is a bug, but downloaded book 2 on steam and Mathew is not available to train sword at night unless you trained sword in the evening.
Not really a bug (except he should probably disappear after training you). It's because he's just supposed to show up during morning/evening, not night.