Fixed a potential crasher-type situation.