Fixed static analyzer warning