fixed bug with divide input zero value