solved division by zero bug when the process starts railed