FIX - preventing negative array size
Merge pull request #28 from antonio83franco/master

FIX - preventing negative array size