Fix bug with learning rate