changed lstm.py log(0) issue