Fixing regularization and dropout