Fixed a static analyzer warning