https://github.com/keras-team/keras/issues/1523