fixed best in place bug