fixed problem on sharp edges