fixed buff checking