Bug fixes for imtables#54. et al.