bug fixes for edge softening