bug in mlp fixed