see https://github.ubc.ca/ubc-mds/academic/issues/381