fixed bug with 0, changed exception message