Fixed a minor crash