Fixed bug with dropout when error function is fuzed woth last activation function