MAJOR BUG fixed

Frequent segmentation fault solved.
Merge pull request #5 from lmrodriguezr/patch-5

MAJOR BUG fixed