Added a check for this in #266