Fix bug in valid function
Verion bump to 0.0.12