fixed divisino by zero