fixed Exception -> division by 0