Fixed a cause for segfaults; added note in code about cause