fix lstm.py log(0)